#include "testListView.h"

testListView::testListView(QWidget *parent)
    : QMainWindow(parent)
{
    ui.setupUi(this);

    
	ImageListModel *model = new ImageListModel;

  
    ui.grid->setModel(model);
	ui.grid->setViewMode(QListView::IconMode);
	ui.grid->setIconSize(QSize(100, 100));
	ui.grid->setFlow(QListView::LeftToRight);
	ui.grid->setResizeMode(QListView::Adjust);

	ui.grid->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
	ui.grid->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);

    
}

testListView::~testListView()
{}
